<!DOCTYPE html>
<html>
<head>
	<title>is和===</title>
</head>
<body>
<script type="text/javascript">
	
/*
	=== 变量的值和类型必须相同
	Object.is 变量必须严格相同，符号都不能偏差
*/
console.log(-0===+0);
console.log(NaN===NaN);

console.log(Object.is(-0,+0));
console.log(Object.is(NaN,NaN));

let obj1 = {name: 'cuihao'};
let obj2 = {name: 'cuihao'};
console.log(Object.is(obj1, obj2))		// false,is判断的是指向堆是否一致

</script>
</body>
</html>